package route

import (
	"bianwang/web/handler"
	"github.com/julienschmidt/httprouter"
)

func InitAreaRouter(rou *httprouter.Router) *httprouter.Router {
	{
		// 获取省份信息
		rou.GET("/api/v1.0/area/getprovince", handler.GetAreaProvince)
		rou.GET("/api/v1.0/area/getcity/:code", handler.GetAreaCity)
		rou.GET("/api/v1.0/area/getarea/:code", handler.GetAreaArea)
		rou.GET("/api/v1.0/area/getstreet/:code", handler.GetAreaStreet)
		rou.GET("/api/v1.0/area/getareas/:code/:level", handler.GetAreas)
	}
	return rou
}
